@import 'variables';
@import 'mixin';
@import 'transition';
@import 'element-ui';
@import 'sidebar';
@import 'btn';

body {
  height: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

.no-padding {
  padding: 0px !important;
}

.padding-content {
  padding: 4px 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
}

ul li {
    list-style: none;
    margin: 0;
    padding: 0;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.fr {
  float: right;
}

.fl {
  float: left;
}

.pr-5 {
  padding-right: 5px;
}

.pl-5 {
  padding-left: 5px;
}

.block {
  display: block;
}

.pointer {
  cursor: pointer;
}

.inlineBlock {
  display: block;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

code {
  background: #eef1f6;
  padding: 15px 16px;
  margin-bottom: 20px;
  display: block;
  line-height: 36px;
  font-size: 15px;
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

  a {
    color: #337ab7;
    cursor: pointer;

    &:hover {
      color: rgb(32, 160, 255);
    }
  }
}

.warn-content {
  background: rgba(66, 185, 131, .1);
  border-radius: 2px;
  padding: 16px;
  padding: 1rem;
  line-height: 1.6rem;
  word-spacing: .05rem;

  a {
    color: #42b983;
    font-weight: 600;
  }
}

//main-container全局样式
.app-container {
  padding: 20px;
}

.components-container {
  margin: 30px 50px;
  position: relative;
}

.pagination-container {
  margin-top: 24px;
}

.text-center {
  text-align: center
}

.sub-navbar {
  height: 50px;
  line-height: 50px;
  position: relative;
  width: 100%;
  text-align: right;
  padding-right: 20px;
  transition: 600ms ease position;
  background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

  .subtitle {
    font-size: 20px;
    color: #fff;
  }

  &.draft {
    background: #d0d0d0;
  }

  &.deleted {
    background: #d0d0d0;
  }
}

.link-type,
.link-type:focus {
  color: #337ab7;
  cursor: pointer;

  &:hover {
    color: rgb(32, 160, 255);
  }
}

.filter-container {
  padding-bottom: 10px;

  .filter-item {
    display: inline-block;
    vertical-align: middle;
    margin-bottom: 10px;
  }
}

//refine vue-multiselect plugin
.multiselect {
  line-height: 16px;
}

.multiselect--active {
  z-index: 1000 !important;
}

/****样式规范****/

// 内容标题
.content-title {
    color: #333333;
    font-size: 16px;
    font-weight: bold;
}

//分页组件
.page-component {
    margin-top: 20px;
    text-align: center;
}

// 补充说明文字
.supplementary-specification {
    font-size: 16px;
    color: #333333;
}

// 加长下拉框选择区域
.el-select-dropdown__list, .el-select-dropdown__item, .el-select-dropdown__item span {
    max-width: none !important;
}
.el-select-dropdown__item {
    width: 100%;
}

.el-cascader-menu {
    overflow-x: hidden!important;
}
.el-cascader-menu__wrap {
    overflow-x: hidden!important;
}

.fixed-input-hidden {
    position: fixed;
    left: -9999px;
    top: -9999px;
}

/* 表格数据样式 */
.tooltips-blue {
    color: #139ce4;
}
.score-text, .tooltips-red, .status-red {
    color: #e21f06;
}
.status-green {
    color: #12bf42;
}
.status-yellow {
    color: #f29716;
}
.status-gray {
    color: #606266;
}
.tips-text {
    color: #606266;
    cursor: auto;
}
.code-error-tips {
    color: #027DB4;
}
.code-error-span {
    color: #fff;
    background: #027DB4;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
}
.not-code-error-tips {
    color: #00BFBF;
}
.not-code-error-span {
    color: #fff;
    background: #00BFBF;
    display: block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 50%;
    text-align: center;
}
// 病案号样式
.to-child-page {
    color: #409EFF;
    cursor: pointer;
    &.disabled {
        color: #99a9bf;
        cursor: not-allowed;
    }
}
// 表格中提示内容居中
.table-tooltip {
    margin: 0 auto;
}
// 系统管理搜索框
.system-search-form {
    padding: 10px 0;
    background: #f6f6f6;
}
// 解决文字按钮撑高行高
.cell .el-button--text {
    padding: 0;
}
// 自定义时间空间弹出框大小
.custom-date-width {
    width: 240px;
    .el-picker-panel__content {
        width: 216px;
        margin: 0 12px 12px;
        .el-year-table {
            td {
                padding: 8px 3px;
            }
        }
        .el-month-table {
            td {
                div {
                    padding: 0;
                    height: 32px;
                    a {
                        height: 32px;
                        line-height: 32px;
                    }
                }
            }
        }
    }
}
.el-table__header {
    th {
        background: #fafafa;
        color: #333;
    }
}

.el-tooltip__popper {
    max-width: 600px;
}

.el-menu-item.is-active {
    background: #747884!important;
}

// 汇总列表嵌套列表样式
.inner-table-style {
    padding: 0!important;
    vertical-align: top!important;
    .cell {
        padding: 0!important;
        th {
            background: transparent!important;
        }
        td, th {
            border-right: 0!important;
            vertical-align: top!important;
        }
        .caret-wrapper {
            height: 24px!important;
            .ascending {
                top: -1px!important;
            }
            .descending {
                bottom: 3px!important;
            }
        }
        .el-table__empty-block {
            min-height: 48px!important;
        }
        .el-table__empty-text {
            line-height: 48px!important;
        }
    }
}
.el-form-item {
    margin-right: 4px!important;
}
.el-form-item__label {
    padding-right: 5px;
}
.el-table td, .el-table th {
    padding: 8px 0;
}
.el-table .cell, .el-table th div, .el-table--border td:first-child .cell, .el-table--border th:first-child .cell, .el-table th>.cell {
    padding: 0 2px;
}
.el-table .caret-wrapper {
    width: 12px;
    height: 19px;
}
.el-table .sort-caret {
    left: 1px;
    &.ascending {
        top: -3px;
    }
    &.descending {
        bottom: 0;
    }
}
.el-table .cell.el-tooltip {
    min-width: 30px;
}
.nowrap-text {
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
